import { markRaw } from 'vue'
import RowStage from '@/components/row-stage/index.vue'

const COLUMN_LIST = [
  {
    label: '评审项模板名称',
    prop: 'name'
  },
  {
    label: '是否两阶段',
    prop: 'secondPhaseName',
    component: markRaw(RowStage)
  }
]
const FILTER_FORM_ITEM = [
  {
    key: 'name',
    value: '',
    name: '评审项模板名称',
    formType: 'input',
    verificationData: '',
    elementConfig: {
      textareaWidth: '400px'
    }
  }
]
// 新增评审模板
const ADD_TEMPLATE_FORM_ITEM = [
  {
    key: 'name',
    value: '',
    name: '模板名称',
    formType: 'input',
    verificationData: '必填',
    elementConfig: {
      textareaWidth: '500px'
    }
  },
  {
    key: 'secondPhaseCode',
    value: '',
    name: '是否为两阶段',
    formType: 'select',
    verificationData: '必填',
    elementConfig: {
      textareaWidth: '500px',
      options: []
    }
  }
]

// 新增评审项
const ADD_SCORE_POINT_FORM_ITEM = [
  {
    key: 'itemId',
    value: null,
    name: '评分点名称',
    formType: 'select',
    verificationData: '必填',
    elementConfig: {
      textareaWidth: '400px',
      options: []
    }
  },
  {
    key: 'flowOrderCode',
    value: '',
    name: '流程顺序',
    formType: 'select',
    verificationData: '必填',
    elementConfig: {
      textareaWidth: '400px',
      options: []
    }
  },
  {
    key: 'orderNo',
    value: null,
    name: '',
    formType: 'empty',
    verificationData: '',
    elementConfig: {}
  }
]
// 工程方法1
export { COLUMN_LIST, FILTER_FORM_ITEM, ADD_TEMPLATE_FORM_ITEM, ADD_SCORE_POINT_FORM_ITEM }
